<section class="content-header">
    <h1>检票员列表</h1>
</section>

<section class="content">
    <div class="box box-primary">
        <div class="box-header">
            <i class="ion ion-clipboard"></i>
            <h3 class="box-title">检票员列表</h3>
            <div class="box-tools pull-right">
                <a class="btn btn-block btn-primary" href="#/inspectorsCreat"><i class="fa fa-plus small-pr"></i>添加检票员</a>
            </div>
        </div>
        <div class="box-body text-center" ng-show="inspectors.length == 0">暂无检票员</div>
        <div class="box-body" ng-show="inspectors.length != 0" style="padding: 10px 0 0 0;">
            <table class="table text-center">
                <tbody>
                <tr>
                    <th>名字</th>
                    <th>手机</th>
                    <th>所在景区</th>
                    <th>验证码</th>
                    <th>添加日期</th>
                    <th>操作</th>
                </tr>
                <tr ng-repeat="inspector in inspectors" ng-class="inspector.is_verified ? 'success' : 'warning'">
                    <td>{{inspector.name}}</td>
                    <td>{{inspector.mobile}}</td>
                    <td>{{inspector.region_desc}}</td>
                    <td>{{inspector.verifycode}}</td>
                    <td>{{inspector.create_time}}</td>
                    <td><i class="fa fa-trash-o curp" ng-click="deleteInspector(inspector)"></i></td>
                </tr>
                </tbody>
            </table>
        </div>
    </div>
</section>